import { createApp } from 'vue'
import { createPinia } from 'pinia'
import {
    // create naive ui
    create,
    // component
    NButton,
    NInput,
    NForm,
    NFormItem,
    NCard,
    NSpace,
    NMessageProvider,
} from 'naive-ui'

import App from './App.vue'
import router from './router'

const naive = create({
    components: [NButton, NInput, NForm, NFormItem, NCard, NSpace, NMessageProvider],
})

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(naive)

app.mount('#app')
